/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cgd;

import cdp.*;
import cgd.*;

/**
 *
 * @author Rodrigo
 */
public class HibernateDAOFactory extends DAOFactory{
    
    @Override
    public DAO getDAO(Class classe) {
        
        if (classe == Cliente.class) {
            return new ClienteDAOHibernateImpl();
        }
        
        if (classe == Marca.class) {
            return new MarcaDAOHibernateImpl();
        }
        
        if (classe == Produto.class) {
            return new ProdutoDAOHibernateImpl();
        }
        
        if (classe == Compra.class) {
            return new CompraDAOHibernateImpl();
        }
        
        return null;
    }
}
